import request from '@/utils/request'

// 查询骑手数据统计列表
export function listRiderStatistics(query) {
  return request({
    url: '/system/riderStatistics/list',
    method: 'get',
    params: query
  })
}

// 查询骑手数据统计详细
export function getRiderStatistics(id) {
  return request({
    url: '/system/riderStatistics/' + id,
    method: 'get'
  })
}

// 新增骑手数据统计
export function addRiderStatistics(data) {
  return request({
    url: '/system/riderStatistics',
    method: 'post',
    data: data
  })
}

// 修改骑手数据统计
export function updateRiderStatistics(data) {
  return request({
    url: '/system/riderStatistics',
    method: 'put',
    data: data
  })
}

// 删除骑手数据统计
export function delRiderStatistics(id) {
  return request({
    url: '/system/riderStatistics/' + id,
    method: 'delete'
  })
}

// 导出骑手数据统计
export function exportRiderStatistics(query) {
  return request({
    url: '/system/riderStatistics/export',
    method: 'get',
    params: query
  })
}